CREATE TABLE [dbo].[TTCODE_COMP]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_DEST] [dbo].[TD_VC_003] NOT NULL,
[DE_DEST] [dbo].[TD_VC_100] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTCODE_CO__CO_US__5EB4F1FC] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTCODE_CO__FE_US__5FA91635] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTCODE_CO__CO_US__609D3A6E] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTCODE_CO__FE_US__61915EA7] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTCODE_COMP] ADD CONSTRAINT [PK__TTCODE_C__372D57800114F6F8] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_DEST]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTCODE_COMP] ADD CONSTRAINT [FK__TTCODE_CO__CO_EM__4AD8E1D8] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
